-- GENERATED SPELL FOR [Shadowfang Darksoul] --


function spell0_3855(pUnit, Event) --@Befuddlement,n/a--
pUnit:FullCastSpellOnTarget(8140,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3855', 15298, 1)
end

function spell1_3855(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3855', 18000, 1)
end

function Sorts_3855(pUnit, Event)
local choix_sorts_3855 = math.random(0, 1)
if choix_sorts_3855 == 0 then
pUnit:RegisterEvent('spell0_3855', 1, 1)
end
if choix_sorts_3855 == 1 then
pUnit:RegisterEvent('spell1_3855', 1, 1)
end
end

function mob3855_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3855', math.random(1500, 3000), 1)
end

function mob3855_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3855_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3855_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3855, 1, 'mob3855_Action')
RegisterUnitEvent(3855, 2, 'mob3855_Leave')
RegisterUnitEvent(3855, 3, 'mob3855_Kill')
RegisterUnitEvent(3855, 4, 'mob3855_Die')
